package com.forte.categorydao;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

import com.forte.productdao.Product;

@Entity(name="category")
public class Category implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id	
	@Column
	private int categoryId;
	
	@Column
	private String categoryName;
	
	@OneToMany	
	private List<Product> product = new ArrayList<Product>();	

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	
	@SuppressWarnings("rawtypes")
	public List<Product> getProduct(List list){
		return null;
	}
	

}
